<template>
  <div class="dashborad-container">
    <div class="app-container">
      <el-card>
        <el-table :data="bigList">
          <el-table-column prop="username" label="姓名" />
          <el-table-column prop="departmentName" label="部门" />
          <el-table-column prop="workNumber" label="工号" />
          <el-table-column prop="mobile" label="手机号" />
        </el-table>
      </el-card>
    </div>
  </div>
</template>

<script>
// 引入模拟数据接口路由
import { getAttendancesMock } from '@/api/attendances'
export default {

  data() {
    return {
      bigList: []// 定义空数组承接 模拟数据
    }
  },
  // 页面加载时在钩子函数中获取模拟数据
  async created() {
    this.bigList = await getAttendancesMock()
    console.log(this.bigList)
  }
}
</script>

<style>

</style>
